package ink.metoo.gude.module.security.domain

import org.springframework.security.authentication.UsernamePasswordAuthenticationToken
import org.springframework.security.core.GrantedAuthority

class SessionAuthenticationToken(
    val sessionId: String?,
    principal: Any,
    credentials: Any,
    authorities: Collection<GrantedAuthority>
) : UsernamePasswordAuthenticationToken(principal, credentials, authorities) {

    override fun getName(): String? = sessionId


}